Skip to main content

Attendance, late arrival

Set tardy exception when an IN punch is the specified number of minutes past the start of a schedule

Details

Rule Type
Time

Execution
After punch

Parameters

NameDataTypeDefaultValueDescription
MinutesLateinteger5The number of minutes after the start of schedule to declare a worker as tardy

Decision Tree

Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.

Line#Level1Level2Level3Comment
1Start
2IF(PUNCH_ACTION(Description) != IN) Only assess tardy on IN punches
3DONE
4IF(CALC(scheduled.day) = 0) If no scheduled hours, can't be tardy
5DONE
6SET(minlate = TIME_DIFF_MINUTES(SCHEDULE(StartTime), EffectiveTime))Calculate the number of minutes late; this will return positive is the punch time is after schedule, or negative if before
7IF(minlate < MinutesLate) If within the allowed threshold, not a tardy
8DONE
9SET( = SET_EXCEPTION(AL))Set the Arrived Late exception on the IN punch (AL is the Code from the Exceptions app)
10DONE